package com.hmall.api.item;

import com.hmall.api.item.fallbackfactory.UserClientFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author: lxr
 * @Date: 2025/09/03 19:41
 * @Description:
 */
@FeignClient(name = "user-service", path = "/users", fallbackFactory = UserClientFallbackFactory.class)
public interface UserClient {
    @PutMapping("/money/deduct")
    public void deductMoney(@RequestParam("pw") String pw, @RequestParam("amount") Integer amount);
}
